<tagLib name="html" />
{$header}
<div id="main" class="main" >
    
<!-- 主体内容  -->
<div class="content" >
    <h3 class="heading">会员列表:
        <volist name="type" id="tp">
            <spann style="margin-left: 5px;"><a href="__URL__/index/type/{$key}">{$tp}</a></span>
        </volist>
    </h3>
<!--  功能操作区域  -->
<div class="btn-toolbar">
      <div class="btn-group">
<button class="btn btn-primary" onclick="add()"><i class="icon-plus icon-white"></i> 新增</button>
<button class="btn btn-primary" onclick="edit()"><i class="icon-edit icon-white"></i> 编辑</button>
<button class="btn btn-primary" onclick="foreverdel_member()"> <i class="icon-trash icon-white"></i>
			删除
		</button>
</div>
<!-- 查询区域 -->
<form class="search-form pull-right" method='post' action="__URL__">
		<input type="text" class="search-query span4" name="keywords" <notempty name='_REQUEST.keywords'>
		<php>echo 'value="'.urldecode($_REQUEST['keywords']).'"'</php>
		<else/>
		placeholder="搜索"
	</notempty>
	>
	<input type="submit" class="btn btn-primary" value="搜索"></form>
</div>
<!-- 功能操作区域结束 -->

<!-- 列表显示区域  -->
<div class="list" >
<html:list id="checkList" name="customer" style="table table-bordered table-striped" checkbox="true" action="true" datasource="list" show="id:编号,name:收货人:edit,email:邮箱,mobile:手机,phone:电话,address:地址,create_time|toDate='Y-m-d H#i#s':创建时间,sort:排序" actionlist="status|showStatus=$member['id'],edit:编辑:id" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 --><include file="Public:footer"/>
<script type="text/javascript">
    function foreverdel_member(id){
	var keyValue;
	if (id)
	{
		keyValue = id;
	}else {
		keyValue = getSelectCheckboxValues();
	}
	if (!keyValue)
	{
		alert('请选择删除项！');
		return false;
	}

	if (window.confirm('确实要永久删除选择项吗？'))
	{
		//ThinkAjax.send(URL+"/foreverdelete/","id="+keyValue+'&ajax=1',doDelete);
                location.href = URL+"/foreverdelete/id/"+keyValue;
	}
}
</script>

